package com.millstein.tsinglog.model.dto.user;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 用户登录时使用的实体
 */
@Data
public class UserLoginDTO {
    @NotNull
    @Length(max = 8)
    private String username;
    @NotNull
    @Length(max = 20, min = 6)
    private String password;
}
